package com.zh.freechat.domain.user.entity;

/**
 * @author Zhou
 * @date 14:02 2025/7/18
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zh.webcommon.common.auditor.mp.SimpleEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户的黑名单关系
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "ch_user_black")
public class UserRelationBlack extends SimpleEntity {
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    private String userId;
    private String blackId;
    /**
     * 黑名单用户关联实体
     */
    @TableField(exist = false)
    private ChatUser chatUser;

    public UserRelationBlack() {
    }

    public UserRelationBlack(String userId, String blackId) {
        this.userId = userId;
        this.blackId = blackId;
    }
}
